#ifndef SETVIEWDIALOG_H
#define SETVIEWDIALOG_H

#include <QtSql>
#include <QDialog>
#include <QMessageBox>
#include <QPushButton>
#include <QCloseEvent>
#include <QMap>
#include "tabmodel3.h"
#include "spinboxdelegate.h"
#include "comboxdelegate2.h"
#include "ui_setviewdialog.h"

class SetViewDialog: public QDialog, private Ui::SetViewDialog
{
Q_OBJECT

public:

SetViewDialog( QString table,
               QString num,
               QString name,
               QMap<int, int> asc_indices_arg,
               QMap<int, int> desc_indices_arg );
~SetViewDialog();
int return_selection();

public slots:

void commit_table();

private:

void set_model();
void delete_model();
QString album;
QMap<int, int> asc_indices;
QMap<int, int> desc_indices;

protected:

void closeEvent(QCloseEvent * e);

};

#endif // SETVIEWDIALOG_H
